package com.note.app.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 创建分享DTO
 */
@Data
@Schema(description = "创建分享请求")
public class ShareCreateDTO {
    
    @NotNull(message = "笔记ID不能为空")
    @Schema(description = "分享笔记ID", required = true, example = "1")
    private Long noteId;
    
    @Schema(description = "权限类型 READ-只读 WRITE-可编辑", example = "READ")
    private String permission = "READ";
    
    @Schema(description = "过期时间", example = "2023-12-31T23:59:59")
    private LocalDateTime expiredAt;
} 